package com.gds.wiki.xxl.job;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.IJobHandler;
import com.xxl.job.core.handler.annotation.JobHandler;
import com.xxl.job.core.log.XxlJobLogger;
import org.springframework.stereotype.Component;

import java.io.Serializable;


@JobHandler(value = "SyncUserJob")
@Component
public class SyncUserJob extends IJobHandler implements Serializable {
    @Override
    public ReturnT<String> execute(String s) throws Exception {

        XxlJobLogger.log("SyncUserJob--start");
        System.out.println("123123");
        XxlJobLogger.log("SyncUserJob--end");
        return ReturnT.SUCCESS;
    }
}
